ti: k3: common: Add root domain node to platform topology
authorAndrew F. Davis <[email protected]>
Mon, 25 Jun 2018 17:10:53 +0000 (12:10 -0500)
committerAndrew F. Davis <[email protected]>
Fri, 29 Jun 2018 21:49:21 +0000 (16:49 -0500)
Actions may need to be taken by the last core when all clusters
have been shutdown. Add a top level root domain node to coordinate
this between clusters.

Signed-off-by: Andrew F. Davis <[email protected]>
plat/ti/k3/common/k3_topology.c
plat/ti/k3/include/platform_def.h

index a77c8f34cfc4824f684cdb46569dba54faae688c..d7ac0a5894dfd99200f008c5a3dac0243af08ec4 100644 (file)
@@ -9,6 +9,7 @@
 
 /* The power domain tree descriptor */
 static unsigned char power_domain_tree_desc[] = {
+       PLATFORM_SYSTEM_COUNT,
        PLATFORM_CLUSTER_COUNT,
        K3_CLUSTER0_CORE_COUNT,
 #if K3_CLUSTER1_MSMC_PORT != UNUSED
index 8856af2ca868b1db53c980c5b2d22b428c61f9c4..ebc9c477091a96e413f7d2afa00938295b3aed63 100644 (file)
 
 #define PLATFORM_CLUSTER_OFFSET                K3_CLUSTER0_MSMC_PORT
 
-#define PLAT_NUM_PWR_DOMAINS           (PLATFORM_CLUSTER_COUNT + \
+#define PLAT_NUM_PWR_DOMAINS           (PLATFORM_SYSTEM_COUNT + \
+                                       PLATFORM_CLUSTER_COUNT + \
                                        PLATFORM_CORE_COUNT)
-#define PLAT_MAX_PWR_LVL               MPIDR_AFFLVL1
+#define PLAT_MAX_PWR_LVL               MPIDR_AFFLVL2
 
 /*******************************************************************************
  * Memory layout constants